package com.example.model;

public class Classes {
    private int classId;       // 班级ID
    private String className;  // 班级名称

    // 无参构造函数
    public Classes() {}

    // 带参构造函数
    public Classes(int classId, String className) {
        this.classId = classId;
        this.className = className;
    }

    // Getters and Setters
    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return "Classes{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                '}';
    }
}